<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.Thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>userList</h1>
    取值方式一：<p th:text="${name}"></p>
    取值方式二： [[${name}]]
    <p th:utext="${name}"></p>

    <table border="1">
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>地址</th>
            <th>操作</th>
        </tr>
        <tr th:each="user:${users}">
            <td th:text="${user.name}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.address}"></td>
            <td>
                <a th:href="@{/user/delUser(id=${user.id})}">删除</a>
            </td>
        </tr>
    </table>
</body>
</html>